const Router=require("koa-router");

const router=new Router({
    prefix:"/user"
});
router.get("/current",async function(ctx){
    ctx.body={
        state:true,
        msg:"获取登录用户信息成功",
        data:{
            user:ctx.state.user
        }
    }
});

exports.userRouter=router;